/*
file error

 */

#include <iostream>
#include <cstdio>
#include <csetjmp>
using namespace std;
class FileError{};
class MemoryError{};
void func(void) {
	throw FileError();
	//throw MemoryError();
	//throw -1; 
}
int main(void){
	try{
		func();
	}
	catch(FileError& ex){
		cout << "file error" << endl;
		return -1;
	}
	catch(MemoryError& ex){
		cout << "memory error" << endl;
		return -1;
	}
	catch(int errnum){
		cout << "int error" << endl;
	}
	return 0;
}
